package com.test13_访问控制权限;

import com.test13_访问控制权限.info.*;

public class YootkDemo_01 {

    public static void main(String[] args) {
        // 不能访问protected属性
        // System.out.println(new Message().msg);
        System.out.println(new MessageSub());
    }
}

class MessageSub extends Message {
    @Override
    public String toString() {
        return super.msg;
    }
}
